package com.xiaof.store.service;

import com.xiaof.store.entity.Order;

/**
 * Created with IntelliJ IDEA.
 *
 * @ProjectName: store
 * @Package: com.xiaof.store.service
 * @ClassName: IOrderService
 * @Author: xiaof
 * @Description:
 * @Date: 2022/1/22 21:21
 * @Version: 1.0
 */
public interface IOrderService {
    /**
     * 创建订单
     * @param aid 收货地址的id
     * @param cids 即将购买的商品数据在购物车表中的id
     * @param uid 当前登录的用户的id
     * @param username 当前登录的用户名
     * @return 成功创建的订单数据
     */
    Order create(Integer aid, Integer[] cids, Integer uid, String username);
}
